<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>GOSRun: D:/_MobileProject/TestProject/ScrollRunner/Assets/Script/Manager/ItemManager.cs 소스 파일</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GOSRun
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">GOS 3D Running Mobile Game</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 다음에 의해 생성됨 :  Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>메인&#160;페이지</span></a></li>
      <li><a href="annotated.html"><span>클래스</span></a></li>
      <li class="current"><a href="files.html"><span>파일들</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>파일&#160;목록</span></a></li>
      <li><a href="globals.html"><span>파일&#160;멤버</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_84bbf7b3c7f28a5a18725745e1505219.html">Assets</a></li><li class="navelem"><a class="el" href="dir_004655f1e8b2fa1f445114117a3053f4.html">Script</a></li><li class="navelem"><a class="el" href="dir_3391c51169966536c785a8b744f2f720.html">Manager</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ItemManager.cs</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_item_manager_8cs.html">이 파일의 문서화 페이지로 가기</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="keyword">using</span> UnityEngine;</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="keyword">using</span> System.Collections;</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div>
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="class_item_manager.html">    4</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_item_manager.html">ItemManager</a> : MonoBehaviour</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;{</div>
<div class="line"><a name="l00006"></a><span class="lineno"><a class="line" href="class_item_manager.html#a6a1fc2dd28afd1cd1f895e1eda8762fb">    6</a></span>&#160;    <span class="keyword">public</span> Vector3 <a class="code" href="class_item_manager.html#a6a1fc2dd28afd1cd1f895e1eda8762fb">rotVelocity</a>;</div>
<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="class_item_manager.html#a1764aef1dd43bb48eea5c44412172c78">    7</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="class_item_manager.html#a1764aef1dd43bb48eea5c44412172c78">rycycleOffset</a>;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="class_item_manager.html#aef5f4d34b139c407ebcff2b42bdbe995">    9</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="class_item_manager.html#aef5f4d34b139c407ebcff2b42bdbe995">timerForDel</a> = 0;   </div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="class_item_manager.html#a56e4287d269ba7d97ba18bb7bd20cf0f">   10</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="class_item_manager.html#a56e4287d269ba7d97ba18bb7bd20cf0f">timerForDelLimit</a> = 60; </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    <span class="comment">// Use this for initialization</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_item_manager.html#af16ac8ebf72828480b4e4bc73b33d414">   13</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_item_manager.html#af16ac8ebf72828480b4e4bc73b33d414">Start</a> ()</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    {</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;        <span class="comment">//GameEventManager.RunEnd += RunEnd;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    }</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    </div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <span class="comment">// Update is called once per frame</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_item_manager.html#aa8aa88e7df534b2c4d3bf7d4eaf8dcd8">   19</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_item_manager.html#aa8aa88e7df534b2c4d3bf7d4eaf8dcd8">Update</a> ()</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    {</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;        <span class="comment">//if (transform.localPosition.z + rycycleOffset &lt; Runner.distanceTraveled - 3)</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <span class="comment">//{</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        <span class="comment">//  return;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        <span class="comment">//}</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;        transform.Rotate(<a class="code" href="class_item_manager.html#a6a1fc2dd28afd1cd1f895e1eda8762fb">rotVelocity</a> * Time.deltaTime);</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        <a class="code" href="class_item_manager.html#aef5f4d34b139c407ebcff2b42bdbe995">timerForDel</a> += Time.deltaTime;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        <span class="keywordflow">if</span> (timerForDel &gt; <a class="code" href="class_item_manager.html#a56e4287d269ba7d97ba18bb7bd20cf0f">timerForDelLimit</a>)</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        {</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;            <span class="comment">//Destroy(gameObject);</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        }</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    }</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_item_manager.html#a950dc2b8465e74b2824e54728bd5c50a">   35</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_item_manager.html#a950dc2b8465e74b2824e54728bd5c50a">OnTriggerEnter</a>()</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        Runner.AddItem();</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        Destroy(gameObject);</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    }</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="comment">//private void RunEnd()</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="comment">//{</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="comment">//}</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;}</div>
<div class="ttc" id="class_item_manager_html_af16ac8ebf72828480b4e4bc73b33d414"><div class="ttname"><a href="class_item_manager.html#af16ac8ebf72828480b4e4bc73b33d414">ItemManager.Start</a></div><div class="ttdeci">void Start()</div><div class="ttdef"><b>Definition:</b> <a href="_item_manager_8cs_source.html#l00013">ItemManager.cs:13</a></div></div>
<div class="ttc" id="class_item_manager_html_a56e4287d269ba7d97ba18bb7bd20cf0f"><div class="ttname"><a href="class_item_manager.html#a56e4287d269ba7d97ba18bb7bd20cf0f">ItemManager.timerForDelLimit</a></div><div class="ttdeci">float timerForDelLimit</div><div class="ttdoc">오브젝트 생성 후 삭제할 시간 </div><div class="ttdef"><b>Definition:</b> <a href="_item_manager_8cs_source.html#l00010">ItemManager.cs:10</a></div></div>
<div class="ttc" id="class_item_manager_html_aef5f4d34b139c407ebcff2b42bdbe995"><div class="ttname"><a href="class_item_manager.html#aef5f4d34b139c407ebcff2b42bdbe995">ItemManager.timerForDel</a></div><div class="ttdeci">float timerForDel</div><div class="ttdoc">오브젝트 관리 타이머 </div><div class="ttdef"><b>Definition:</b> <a href="_item_manager_8cs_source.html#l00009">ItemManager.cs:9</a></div></div>
<div class="ttc" id="class_item_manager_html_aa8aa88e7df534b2c4d3bf7d4eaf8dcd8"><div class="ttname"><a href="class_item_manager.html#aa8aa88e7df534b2c4d3bf7d4eaf8dcd8">ItemManager.Update</a></div><div class="ttdeci">void Update()</div><div class="ttdef"><b>Definition:</b> <a href="_item_manager_8cs_source.html#l00019">ItemManager.cs:19</a></div></div>
<div class="ttc" id="class_item_manager_html"><div class="ttname"><a href="class_item_manager.html">ItemManager</a></div><div class="ttdef"><b>Definition:</b> <a href="_item_manager_8cs_source.html#l00004">ItemManager.cs:4</a></div></div>
<div class="ttc" id="class_item_manager_html_a6a1fc2dd28afd1cd1f895e1eda8762fb"><div class="ttname"><a href="class_item_manager.html#a6a1fc2dd28afd1cd1f895e1eda8762fb">ItemManager.rotVelocity</a></div><div class="ttdeci">Vector3 rotVelocity</div><div class="ttdef"><b>Definition:</b> <a href="_item_manager_8cs_source.html#l00006">ItemManager.cs:6</a></div></div>
<div class="ttc" id="class_item_manager_html_a950dc2b8465e74b2824e54728bd5c50a"><div class="ttname"><a href="class_item_manager.html#a950dc2b8465e74b2824e54728bd5c50a">ItemManager.OnTriggerEnter</a></div><div class="ttdeci">void OnTriggerEnter()</div><div class="ttdef"><b>Definition:</b> <a href="_item_manager_8cs_source.html#l00035">ItemManager.cs:35</a></div></div>
<div class="ttc" id="class_item_manager_html_a1764aef1dd43bb48eea5c44412172c78"><div class="ttname"><a href="class_item_manager.html#a1764aef1dd43bb48eea5c44412172c78">ItemManager.rycycleOffset</a></div><div class="ttdeci">float rycycleOffset</div><div class="ttdef"><b>Definition:</b> <a href="_item_manager_8cs_source.html#l00007">ItemManager.cs:7</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
생성시간 : 금 4월 11 2014 16:30:03, 프로젝트명 : GOSRun, 생성자 :  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
